import request from '@/utils/request'

// 查询组织机构申报备案列表
export function listDeclarationFiling(query) {
  return request({
    url: '/labdata/declarationFiling/list',
    method: 'get',
    params: query
  })
}

// 查询组织机构申报备案详细
export function getDeclarationFiling(instanceId) {
  return request({
    url: '/labdata/declarationFiling/' + instanceId,
    method: 'get'
  })
}

// 新增组织机构申报备案
export function addDeclarationFiling(data) {
  return request({
    url: '/labdata/declarationFiling',
    method: 'post',
    data: data
  })
}

// 修改组织机构申报备案
export function updateDeclarationFiling(data) {
  return request({
    url: '/labdata/declarationFiling',
    method: 'put',
    data: data
  })
}

// 删除组织机构申报备案
export function delDeclarationFiling(instanceId) {
  return request({
    url: '/labdata/declarationFiling/' + instanceId,
    method: 'delete'
  })
}

// 导出组织机构申报备案
export function exportDeclarationFiling(query) {
  return request({
    url: '/labdata/declarationFiling/export',
    method: 'get',
    params: query
  })
}

// 提交机构申报备案流程
export function commitDeclarationFiling(data) {
  return request({
    url: '/labdata/declarationFiling/commit',
    method: 'post',
    data: data
  })
}
